package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.ThdProductBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface ThdProductService extends BaseService<ThdProductBean> {

	ThdProductBean getThdProductBeanById(String id) throws Exception;
	
	void removeThdProductBeanById(String id) throws Exception;
	
	void removeThdProductBeanByIds(String ids) throws Exception;
	
	ThdProductBean saveThdProductBean(ThdProductBean crm) throws Exception;
	
	ThdProductBean updateThdProductBean(ThdProductBean crm) throws Exception;
	
	Page<ThdProductBean>  findThdProductBeanByCond(ThdProductBean bean,
			Page<ThdProductBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveThdProductBeanExt(String sql) throws Exception;

	String findThdProductBeanExtCreate(String tableName) throws Exception;

	String findThdProductBeanExtEdit(String tableName, String id)
			throws Exception;

	String findThdProductBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasThdProductBeanExtData(String tableName, String id)
			throws Exception;
}